<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<title>类目编辑</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="css/bootstrap.css"/> 
</head>
<body>
<div class="container">

	<%@include file="header.jsp"%>

	<br><br>
	
	<form class="form-horizontal" action="typeUpdate" method="post" enctype="multipart/form-data">

		<input type="hidden" name="id" value="${projects.id}"/>
		<input type="hidden" name="xmimg" value="${projects.xmimg}"/>
		<div class="form-group">
			<label for="input_file" class="col-sm-1 control-label">项目图片</label>
			<div class="col-sm-6"><img src="${projects.xmimg}" width="100"/>
				<input type="file" name="file" id="input_file" style="display:inline;"> ( 推荐尺寸: 1920 * 1080 )
			</div>
		</div>
		<div class="form-group">
			<label for="input_name" class="col-sm-1 control-label">标题</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" name="xmbt" value="${projects.xmbt}" required="required">
			</div>
		</div>

		<div class="form-group">
			<label for="select_topic" class="col-sm-1 control-label">内容</label>
			<div class="col-sm-6">
				<textarea id="editor" name="xmneirong" style="width:800px;height:600px;"></textarea>
			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
				<button type="submit" class="btn btn-success">提交修改</button>
			</div>
		</div>
	</form>
	
	<span style="color:red;">${msg}</span>
	
</div>	
</body>
</html>